﻿<%@ Page Title="" Language="C#" MasterPageFile="~/ScheduleSystem/ScheduleSite.master" AutoEventWireup="true" CodeFile="NewTask.aspx.cs" Inherits="ScheduleSystem_Tasks_NewTask" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
    <style type="text/css">
        .auto-style1 {
            height: 31px;
            width: 387px;
        }
        .auto-style2 {
            width: 148px;
        }
        .auto-style3 {
            height: 31px;
            width: 148px;
            font-weight: bold;
        }
        .auto-style5 {
            width: 25px;
        }
        .auto-style6 {
            width: 148px;
            font-weight: bold;
        }
        .auto-style8 {
            width: 148px;
            font-weight: bold;
            height: 54px;
        }
        .auto-style9 {
            width: 387px;
            height: 54px;
        }
        .auto-style12 {
            height: 31px;
            width: 310px;
        }
        .auto-style13 {
            width: 310px;
            height: 54px;
        }
        .auto-style14 {
            width: 310px;
        }
        .auto-style15 {
            width: 387px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="FeaturedContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" Runat="Server">
    <table style="width:100%;">
        <tr>
            <td class="auto-style5" rowspan="6">
                <asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Tasks.png" />
            </td>
            <td class="auto-style6">Title:</td>
            <td class="auto-style14">
                <asp:TextBox ID="TaskName" runat="server" OnTextChanged="TaskName_TextChanged"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TaskName" CssClass="field-validation-error" ErrorMessage="Title is required"></asp:RequiredFieldValidator>
            </td>
            
            <td class="auto-style15">
                &nbsp;</td>
            
        </tr>
        <tr>
            <td class="auto-style3">Assigned to:</td>
            <td class="auto-style12">
                <asp:DropDownList ID="UserName" runat="server">
                </asp:DropDownList>
            </td>
            <td class="auto-style1">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style6">Customer:</td>
            <td class="auto-style14">
                <asp:DropDownList ID="Customer" runat="server" OnSelectedIndexChanged="Customer_SelectedIndexChanged">
                </asp:DropDownList>
            </td>
            <td class="auto-style15">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style6">Start Date:</td>
            <td class="auto-style14">
                <asp:TextBox ID="StartDate" runat="server" TextMode="DateTime"></asp:TextBox>
                <ajaxToolkit:CalendarExtender ID="StartDate_CalendarExtender" runat="server" Enabled="True" TargetControlID="StartDate">
                </ajaxToolkit:CalendarExtender>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="StartDate" CssClass="field-validation-error" ErrorMessage="Start date is required"></asp:RequiredFieldValidator>
                <asp:CompareValidator
                    id="dateValidator" runat="server" 
                    Type="Date"
                    Operator="DataTypeCheck"
                    ControlToValidate="StartDate" 
                    ErrorMessage="Please enter a valid date." CssClass="field-validation-error"></asp:CompareValidator>
            </td>
            <td class="auto-style15">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style6">Due Date:</td>
            <td class="auto-style14">
                <asp:TextBox ID="DueDate" runat="server"></asp:TextBox>
                <ajaxToolkit:CalendarExtender ID="DueDate_CalendarExtender" runat="server" Enabled="True" TargetControlID="DueDate">
                </ajaxToolkit:CalendarExtender>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="DueDate" CssClass="field-validation-error" ErrorMessage="Due date is required"></asp:RequiredFieldValidator>
                <asp:CompareValidator
                    id="dateValidator0" runat="server" 
                    Type="Date"
                    Operator="DataTypeCheck"
                    ControlToValidate="DueDate" 
                    ErrorMessage="Please enter a valid date." CssClass="field-validation-error"></asp:CompareValidator>
            </td>
            <td class="auto-style15">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style8">% Complete</td>
            <td class="auto-style13">
                <asp:TextBox ID="Complete" runat="server" TextMode="Number">0</asp:TextBox>
                <asp:CompareValidator
                    id="dateValidator1" runat="server" 
                    Type="Integer"
                    Operator="DataTypeCheck"
                    ControlToValidate="Complete" 
                    ErrorMessage="Please enter a valid number." CssClass="field-validation-error"></asp:CompareValidator>
            </td>
            <td class="auto-style9">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style5" rowspan="3">&nbsp;</td>
            <td class="auto-style6">Description:</td>
            <td class="auto-style14">
                <asp:TextBox ID="Description" runat="server" Height="116px" TextMode="MultiLine" Width="298px"></asp:TextBox>
            </td>
            <td class="auto-style15">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style6">Priority:</td>
            <td class="auto-style14">
                <asp:DropDownList ID="Priority" runat="server">
                    <asp:ListItem Value="1">(1) High</asp:ListItem>
                    <asp:ListItem Value="2">(2) Normal</asp:ListItem>
                    <asp:ListItem Value="3">(3) Low</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="auto-style15">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style6">Status:</td>
            <td class="auto-style14">
                <asp:DropDownList ID="Status" runat="server">
                    <asp:ListItem Value="1">Assigned</asp:ListItem>
                    <asp:ListItem Value="2">Unassigned</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td class="auto-style15">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style5" rowspan="2">&nbsp;</td>
            <td class="auto-style6">Assignement date:</td>
            <td class="auto-style14">
                <asp:TextBox ID="Assignment_date" runat="server" TextMode="Date"></asp:TextBox>
                <ajaxToolkit:CalendarExtender ID="Assignment_date_CalendarExtender" runat="server" Enabled="True" TargetControlID="Assignment_date">
                </ajaxToolkit:CalendarExtender>
            </td>
            <td class="auto-style15">
                &nbsp;</td>
        </tr>
        <tr>
            <td class="auto-style2">&nbsp;</td>
            <td class="auto-style14">
                <asp:Button ID="Save" runat="server" OnClick="Save_Click" Text="Save" />
                <asp:Button ID="Cancel" runat="server" Text="Cancel" />
            </td>
            <td>&nbsp;</td>
        </tr>
    </table>
</asp:Content>

